package com.nd.bdc.presto.entity;

import java.util.ArrayList;
import java.util.List;


public class CatalogsView{

    private List<CatalogView> catalogs;

    public CatalogsView() {
        this.catalogs = new ArrayList<>();
    }

    public List<CatalogView> getCatalogs() {
        return catalogs;
    }

    public void setCatalogs(List<CatalogView> catalog) {
        this.catalogs = catalog;
    }

    public static class CatalogView {
        private String catalog;
        private List<SchemaView> schemas;

        public CatalogView() {
            this.schemas = new ArrayList<>();
        }

        public CatalogView(String catalog) {
            this.catalog = catalog;
            this.schemas = new ArrayList<>();
        }

        public String getCatalog() {
            return catalog;
        }

        public void setCatalog(String catalog) {
            this.catalog = catalog;
        }

        public List<SchemaView> getSchemas() {
            return schemas;
        }

        public void setSchemas(List<SchemaView> schemas) {
            this.schemas = schemas;
        }

        public static class SchemaView{
            private String schema;
            private List<String> tables;

            public SchemaView() {
                this.tables = new ArrayList<>();
            }

            public SchemaView(String schema) {
                this.schema = schema;
                this.tables = new ArrayList<>();
            }

            public String getSchema() {
                return schema;
            }

            public void setSchema(String schema) {
                this.schema = schema;
            }

            public List<String> getTables() {
                return tables;
            }

            public void setTables(List<String> tables) {
                this.tables = tables;
            }
        }



    }
}


